import { numberFormat } from '@/util/util.js'
export const tableOptionDetailEdit = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  menu:false,
  addBtn:false,
  refreshBtn:false,
  columnBtn:false,
  header:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一主键",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "主表关联ID",
      "prop": "relationId",
      hide:true,
    },	  {
      "type": "input",
      "label": "回执单号",
      "prop": "ticketWayNum"
    }, {
      "type": "select",
      "label": "车票名称",
      "prop": "ticketName",
      dicUrl:"/support/swpmticketcardtypeparam/dictAll",
      props:{
        label:'subName',
        value:'subEnName'
      },
    }, {
      "type": "number",
      "label": "售卖张数 (张)",
      "prop": "ticketSellNum"
    },	  {
      "type": "number",
      "label": "售卖金额",
      "prop": "ticketSellAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      }
    },	  {
      "type": "number",
      "label": "转账金额",
      "prop": "ticketTransferAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      },
      cell: true
    },	  {
      "type": "select",
      "label": "售卖方式",
      "prop": "sellWay",
      dicUrl:"/admin/dict/type/sw_st_electronicreceipt_details_sell_type"
    },	  {
      "type": "input",
      "label": "差异金额",
      "prop": "diffAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      }
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "删除标志 1：删除 0：未删",
      "prop": "delFlag",
      hide:true,
    }  ]
}

export const tableOptionDetail = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  menu:false,
  addBtn:false,
  refreshBtn:false,
  columnBtn:false,
  header:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一主键",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "主表关联ID",
      "prop": "relationId",
      hide:true,
    },	  {
      "type": "input",
      "label": "回执单号",
      "prop": "ticketWayNum"
    }, {
      "type": "select",
      "label": "车票名称",
      "prop": "ticketName",
      dicUrl:"/support/swpmticketcardtypeparam/dictAll",
      props:{
        label:'subName',
        value:'subEnName'
      },
    }, {
      "type": "number",
      "label": "售卖张数 (张)",
      "prop": "ticketSellNum"
    },	  {
      "type": "number",
      "label": "售卖金额",
      "prop": "ticketSellAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      }
    },	  {
      "type": "input",
      "label": "转账金额",
      "prop": "ticketTransferAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      }
    },	  {
      "type": "select",
      "label": "售卖方式",
      "prop": "sellWay",
      dicUrl:"/admin/dict/type/sw_st_electronicreceipt_details_sell_type"
    },	  {
      "type": "number",
      "label": "差异金额",
      "prop": "diffAmount",
      "precision":2,
      formatter: (row,value,label,column) => {
        return numberFormat(value, column.precision)
      }
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "删除标志 1：删除 0：未删",
      "prop": "delFlag",
      hide:true,
    }  ]
}

